any
Type
keyword
Summary
Designates a randomly chosen member of a set.
Syntax
any
Description
Use the any keyword to specify a random object of a specified type, or to designate a random chunk in a chunk expression.
The any keyword does not examine every member of a set; it specifies just one member of the set, randomly chosen. For example, the expression
if myString is in any field
checks whether myString
is in a randomly chosen field, not whether
myString
is somewhere in one of the fields on the card.
Examples
local wordOfTheDay
put any word of field "Dictionary" into wordOfTheDay
go to any card -- goes to a random card in the stack
select any button
Related
glossary: keyword, random, chunk expression, chunk, object
function: random
Compatibility and Support
Introduced
LiveCode 1.0
OS
mac
windows
linux
ios
android
Platforms
desktop
server
mobile